(function () {
    let name = 'ZhangSan'

    function upCase(){
        name = name.toUpperCase()
        console.log(name)
    }

    function lowCase(){
        name = name.toLowerCase()
        console.log(name)
    }

    window.myModule2 = {
        upCase,
        lowCase
    }
})()
